import request from '@/service/request'

// 登录
const login = (params) => {
  return request.post('/sys/login/userLogin', params)
}

// 模拟请求
const mockLogin = (params) => {
  // mock请求必须以/mock开头
  return request.post('/mock/user/login', params)
}

// 获取用户个人信息
const getUserInfo = () => {
  return request.get('/sys/login/getUserInfo')
}

export { login, mockLogin, getUserInfo }
